package com.czxy.demo03;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

@RunWith(SpringJUnit4ClassRunner.class)

@ContextConfiguration(locations = "classpath:SpringConfig03.xml")


public class Test03 {

    @Resource
    private User user;

    @Test
    public  void  t01(){
        user.eat();
    }
}
